package com.bua.datafactory;

import org.json.JSONException;


/**
 * Created with IntelliJ IDEA.
 * User: shenran
 * Date: 13-8-21
 * Time: 下午 5:16
 * To change this template use File | Settings | File Templates.
 */
public class OrderCreatedResultDataFactory extends DataFactory {

    public String orderId;
    public String createdDate;

    public OrderCreatedResultDataFactory(String jsonString) {
        super(jsonString);
        if (status == 200) {
            try {
                orderId = body.getString("orderID");
                createdDate = body.getString("created");
            } catch (JSONException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
    }
}
